package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/5/24 17:05
 * @Describe    :
 */
@Parcelize
class RaceInfoResponse(

    var avatar: String = "",
    var isFollow: Boolean = false,
    var orgName: String = "",
    var passList: ArrayList<PassListBean> = arrayListOf(),
    var pigeonCnt: Int = 0,
    var raceId: Int = 0,
    var raceCreateType: Int = 0,//2科汇
    var raceName: String = "",
    var state: Int = 0,//1开启2关闭
    var VisitState: Boolean = false//探视开关

) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = passList == null || (passList as List<*>).isEmpty()

    @Parcelize
    class PassListBean(

        var passCreateType: Int = 0,//2科汇
        var backCnt: Int = 0,
        var backPercent: Int = 0,
        var flyTime: String = "",
        var gatherCnt: Int = 0,
        var id: Int = 0,
        var passName: String = "",
        var passStatus: Int = 0,//1-未开始，2-报名中，3-报名结束，4-集鸽中，5-集鸽结束，6-比赛中，7-比赛结束，8-开始中，9-验鸽中，10-结束中'
        var backLiveStatus: Int = 0,
        var carLiveStatus: Int = 0,
        var gatherLiveStatus: Int = 0,//0-未开始 1-直播中 2-直播结束
        var backRecordStatus: Boolean = false,
        var carRecordStatus: Boolean = false,
        var gatherRecordStatus: Boolean = false,
        val passType: Int//1-比赛

    ) : Parcelable

}